//
//  ASTodayTransFromListCell.m
//  TestPrj
//
//  Created by 朱铅峰 on 2019/12/19.
//  Copyright © 2019 Xing. All rights reserved.
//

#import "ASTodayTransFromListCell.h"
#import <Masonry.h>

@interface ASTodayTransFromListCell()


@end

@implementation ASTodayTransFromListCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addViews];
    }
    return self;
}

- (void)addViews {
    
    self.backgroundColor = [UIColor clearColor];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    self.bgView = [[UIView alloc] init];
    [Utils resetView:self.bgView bgColor:[UIColor clearColor] cornerRadius:10 borderWidth:0 borderColor:[UIColor clearColor]];
    [self.contentView addSubview:self.bgView];
    [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(UIEdgeInsetsMake(10, 15, 10, 15));
    }];
    
    self.iconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"timg"]];
    self.iconView.contentMode = UIViewContentModeScaleAspectFill;
    [self.bgView addSubview:self.iconView];
    [self.iconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(UIEdgeInsetsZero);
        make.height.mas_equalTo(self.bgView.mas_width).multipliedBy(1.1);
    }];
    
    self.nameLabel = [[UILabel alloc] init];
    self.nameLabel.font = [UIFont systemFontOfSize:15];
    self.nameLabel.numberOfLines = 0;
    self.nameLabel.text = @"名称标签哦哦哦哦哦";
    [self.contentView addSubview:self.nameLabel];
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.mas_equalTo(20);
        make.right.mas_equalTo(-20);
    }];
}

@end
